package day1026_2;

public class EmployeeTest {
    public static void main(String[] args) {
        try {
            EmployeeN e=new EmployeeN();
            e.setId(-100);//如果给对象e的id赋值为一个大于0的就不会出异常
        } catch (PropertyException e) {
            System.out.println(e.getMessage());
        }
    }
}

